﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TeamCommunitySolution.Domain.DataLayer.Base;
using TeamCommunitySolution.Domain.DataLayer.Venues;
using TeamCommunitySolution.Domain.DataLayer.PlayerMetrics;

namespace TeamCommunitySolution.Domain.DataLayer.Leagues
{
    public class LeagueMeetingTeam
    {
        public virtual string LeagueMeetingId { get; set; }
        public virtual string TeamId { get; set; }
        public virtual bool IsAttending { get; set; }

        public override bool Equals(object obj)
        {
            if (!(obj is LeagueMeetingTeam))
                return false;

            LeagueMeetingTeam other = obj as LeagueMeetingTeam;

            if (this.LeagueMeetingId.Equals(other.LeagueMeetingId) && this.TeamId.Equals(other.TeamId))
                return true;

            return false;
        }

        public override int GetHashCode()
        {
            int hash = 13;
            hash = hash + (null == this.LeagueMeetingId ? 0 : this.LeagueMeetingId.GetHashCode());
            hash = hash + (null == this.TeamId ? 0 : this.TeamId.GetHashCode());

            return hash;
        }

    }
}
